"""
project: apiAutoTestWeb
file: schemas.py
author: zy7y
date: 2021/4/17
"""
from typing import Any

from pydantic.main import BaseModel


class ResponseBase(BaseModel):
    code: int = 200
    message: str = "请求成功."
    data: Any = None


class Success(ResponseBase):
    pass


class Fail(ResponseBase):
    code: int = 400
    message: str = "请求错误."


class Token(BaseModel):
    # access_token: str
    token: str
    token_type: str = "bearer"

class Login(BaseModel):
    username: str
    password: str